package com.srxz.personnelsystem.system.mapper.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: UserInfoDTO
 * @author: wgchao
 * @createTime: 2019/1/8 3:11 PM
 * @Description: TODO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserInfoDTO implements Serializable {
    private String id;

    private String name;

    private String idcard;

    private String sex;//性别

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date birth;//出生日期

    private String nation;//民族

    private String permanentAddr;//户籍地址

    private String addr;//现住址

    private String departmentId;

    private String religion;//宗教信仰

    private String political;//政治面貌

    private String marriage;//婚姻状况

    private String fertility;//生育状况

    private String education;//学历

    private String college;//毕业学校

    private String major;//专业

    private String qualification;//资格证书

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date entryTime;//入职时间

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date regularTime;//转正时间

    private Integer probation;//试用期 -- 天数

    private String tel;

    private String email;

    private Integer status;// 状态 0 试用期 1在职 -1离职

    private Boolean login;// 是否可登录

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String createUser;

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date lastUpdateTime;

    private String lastUpdateUser;

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date deleteTime;

    private String deleteUser;

    //附加
    private String statusName;
    private String createUserName;
    private String lastUpdateUserName;
    private String deleteUserName;

    private String seniority;//工龄 --入职时间（年）
    private Integer age;//年龄

    private LoginInfoDTO loginInfoDTO;

    private String departmentName;
    

}
